VT-d: change bogus return value of intel_iommu_lookup_page()
authorJan Beulich <jbeulich@suse.com>
Fri, 31 May 2019 09:39:49 +0000 (11:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 May 2019 09:39:49 +0000 (11:39 +0200)
commit2a4c343c5baa241ea5d8685ac96989543ea67410
treeea9c1711040c6c018cd22519941c08b1cb58ffdf
parent0c1ba0c6a0fd88934fd59474d46f3c2677836cb3
VT-d: change bogus return value of intel_iommu_lookup_page()

The function passes 0 as "alloc" argument to addr_to_dma_page_maddr(),
so -ENOMEM simply makes no sense (and its use was probably simply a
copy-and-paste effect originating at intel_iommu_map_page()).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c